home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
LIBRARY
/
VTOOLS
/
FASTDEMO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-03-24
|
5KB
|
158 lines
Uses VTFast,VTKey,CRT;
Var TMP : Byte;
Procedure MainDisplay;
Begin
SetPage(0);
ClS(7); HideCursor;
PlainWriteCenter(1,'PROFESSIONAL SOFTWARE SYSTEM');
PlainWriteCenter(2,'────────────────────────────');
ColorWriteCenter(4,14,Red,' VISION TOOLS ');
ColorWrite(2,7,15,1,'A FAST way to design Your interFACE with Turbo/Borland PASCAL 6.0+');
PlainWrite(2,8,'VERSION 1.0 - Beta');
PlainHorizLine(1,80,9,1);
ColorHorizLine(1,80,10,15,0,2);
ColorWrite(1,11,15,red,'WARNING!');
PlainWrite(10,11,'ALL OF THEESE UNITS IS NOT COMPLETE WARIANT!');
PlainWrite(1,12,'We still extending this units to complete wariant.');
PlainWrite(1,13,'All of theese units may not work correctly. If You find any errors please');
PlainWrite(1,14,'send mail/Email to us with error that You found. Thanx!');
ColorWriteBetween(1,80,25,15+Blink,1,' PRESS ANY KEY TO CONTINUE ');
GetKey(Key,Key1);
End;
Procedure PlainAndColorDemo;
Begin
FillScreen(15,1,#178);
PlainClearText(1,1,80,5);
PlainWriteCenter(3,'This is plain cleared.');
ClearText(1,7,80,12,14,0);
PlainWriteCenter(9,'This is color cleared.');
PlainWriteVert(75,1,'PLAIN WRITE VERT');
PlainVertLine(76,1,16,1);
ColorWriteVert(5,1,14,red,'COLOR WRITE VERT');
ColorVertLine(4,1,16,14,red,2);
ColorWriteCenter(24,14,red,' THIS IS TEXTPAGE 0 ');
ColorWriteCenter(25,14,red,' PRESS ANY KEY TO CONTINUE ');
GetKey(Key,Key1);
End;
Procedure BoxDemo;
Begin
DrawBox(1,1,39,12,1);
DrawFillBox(41,1,80,12,15,1,2);
ExplodeBox(1,13,80,24,15,red,2);
PlainWriteBetween(1,39,6,'THIS IS PLAIN WRITTEN BOX');
PlainWriteBetween(41,80,6,'THIS IS COLOR WRITTEN BOX');
PlainWriteCenter(17,'THIS BOX HAS EXPLODED');
End;
Procedure PageDemo;
Begin
ColorWriteCenter(25,14,red,' THIS IS TEXTPAGE 1. PRESS ANY KEY TO RETURN IN TEXTPAGE 0 ');
GetKey(Key,Key1);
SetPage(0);
ColorWriteCenter(25,14,red,' THIS IS TEXTPAGE 0. PRESS ANY KEY ');
GetKey(Key,Key1);
SetPage(1);
ColorWriteCenter(25,14,red,' THIS IS TEXTPAGE 1. PRESS ANY KEY TO CONTINUE');
GetKey(Key,Key1);
Cls(7);
SetPage(0);
End;
Procedure CursorDemo;
Procedure ClearStatLine;
Begin
ClearText(1,13,80,13,15,red);
End;
Begin
Cls(7);
XY(40,12);
SetCharAttr(40,12,Attrib(15,1));
PlainWriteChar(40,12,'≡');
ClearStatLine;
PlainWriteCenter(13,'Now cursor is invisible.');
HideCursor;
Delay(2000);
ClearStatLine;
PlainWriteCenter(13,'Now cursor is "HalfCursor"');
HalfCursor;
Delay(2000);
ClearStatLine;
PlainWriteCenter(13,'Now cursor is "FullCursor"');
FullCursor;
Delay(2000);
ClearStatLine;
PlainWriteCenter(13,'Now cursor is normal');
SmallCursor;
Delay(2000);
End;
Procedure ScrollDEmo;
Begin
ScrollUp(5,5,75,20,2,7);
ColorWriteCenter(25,15,red,' Block of screen scrolls up two lines. PRESS ANY KEY to Scroll down two lines. ');
GetKey(Key,Key1);
ScrollDown(5,5,75,20,2,7);
PlainClearText(1,25,80,25);
ColorWriteCenter(25,15,red,'Now block of screen returns to previous position. PRESS ANY KEY.');
GetKey(Key,Key1);
End;
Procedure ColorDemo;
Var Coord,
Tmp1 : Byte;
Begin
Cls(7); Coord := 1;
For Tmp := 0 to 15 Do Begin
For Tmp1 := 0 To 15 Do
Begin
ColorWrite(Coord,Tmp1,Tmp,Tmp1,'TEXT');
End;
Inc(Coord,5);
End;
ColorWriteCenter(25,15,red,'This is 16 x 8 colors & 16 x 8 blinking colors. PRESS ANY KEY');
GetKey(Key,Key1);
ClearText(1,25,80,25,15,red);
SetBlink(False);
ColorWriteCenter(25,15,red,'This is 16 x 16 colors. PRESS ANY KEY');
GetKey(Key,Key1);
SetBlink(True);
End;
Procedure Info;
Begin
Cls(7);
PlainWrite(1,1,' Vision tools are projected and compiled by:');
PlainWrite(1,3,' PROFESSIONAL COMPUTER SYSTEMS (PSS)');
PlainWrite(2,4,ReplicateChar(35,'-'));
PlainWrite(1,5,' BULGARIA,');
PlainWrite(1,6,' 2700 BLAGOEVGRAD');
PlainWrite(1,7,' Vladimir Vasilev Ivanov');
PlainWrite(1,8,' 14ti POLK Str. No.6 Inp"V",Fl.3');
PlainWrite(1,9,' Phone: +359-73-280-57');
PlainWrite(40,7,' Victor Nikolov Levunliev');
PlainWrite(40,8,' Hajdukovi Str No.72a Fl.2');
PlainWrite(40,9,' Phone: +359-73-242-63');
Halt;
End;
Begin
IF Not EGAVGASystem Then Begin
WriteLn('SORRY MINIMUM EGA Required!');
Halt(1);
End;
MainDisplay;
PlainAndColorDemo;
SetPage(1);
Cls(7);
BoxDemo;
PageDemo;
CursorDemo;
ScrollDemo;
ColorDemo;
Info;
End.